<div id="wrapper_content">
    <div id="page_new">
        <div id="info_new">
            <?php echo $category[0]->category_name; ?>
        </div>
        <div id="content">
            <h2 class="content_title">
                <?php echo $news->news_title; ?>
            </h2>
            <div style="margin-top:-15px;"><span style="color: #666;">
                    Cập nhật: <?php echo $news->news_updated_at; ?>
                </span></div>
            <p class="head_content">
                <?php echo strip_tags(htmlspecialchars_decode($news->news_description)); ?>
            </p>
            <p style="font-size:14px;">
                <?php echo $news->news_content; ?>
            </p>
            <h2 style="text-align:right;font-size:13px;margin-right:10px;">Nguon: Tinhte.com</h2>

            <!-- COMMENT -->
            <div id="comment">
                <div class="comment-header">Ý kiến</div>
                <div class='list-comment'>
                    <ul>
                        <?php foreach ($comments as $comment){ ?>
                        <li>
                            <div class="author"><?php echo $comment->comment_author ?></div>
                             <div class="time"><?php echo $comment->comment_created_at ?></div>
                            <div class="content"><?php echo $comment->comment_content ?></div>
                        </li>
                        <?php } ?>
                    </ul>
                </div><!-- End .list-comment -->

                <div class='leave-comment'>
                    <h3>Để lại ý kiến</h3>
                    <?php echo $this->renderPartial('_fcomment', array('comment_form' => $comment_form)); ?>
                </div>
                <!-- End .leave-comment -->
                
                <div><!-- End #comment -->
                </div>
            </div>
        </div>


    </div>
    <div id="ads_content">
        <div id="hot_video">
            <h2>Quảng cáo</h2>
            <ul>
            	<?php foreach($ads as $ad){ ?>
			                <li>
				<div class="ads_title">
					<a href="<?php echo $ad->ads_url; ?>"><?php echo $ad -> ads_title; ?></a>
				</div>
				<div class="ads_website">
					<a href="<?php echo $ad-> ads_url; ?>"><?php echo $ad -> ads_website; ?></a>
				</div>
				<div class="ads_content">
					<a href="<?php echo $ad -> ads_url; ?>">
						<?php if($ad->ads_image != null){?>
							<img src="<?php echo $ad -> ads_image; ?>" /> 
						<?php }else{ ?>
							<img src="images/default.jpg" /> 
						<?php } ?>
					</a>
					<div class="ads_desc">
						<?php echo $ad-> ads_desc; ?>
					</div>
				</div>
			</li>
			<?php } ?>
			
            </ul>
        </div>
    </div>

</div>

